<%@ Page Language="VB" AutoEventWireup="false" CodeFile="VisioViewer.aspx.vb" Inherits="VisioViewer" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>

<%@ OutputCache Duration="3600"  VaryByControl="Viewer1"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Visio Viewer</title>

<script language="javascript" type="text/javascript" src="visioViewer.js">
function Viewer1_OnDocumentLoaded() {

}


function Viewer1_ondblclick() {
debugger;
}

</script>

<script language="javascript" type="text/javascript" for="Viewer1" event="OnSelectionChanged" >
// <!CDATA[
    return Viewer1_OnSelectionChanged()
// ]]>
</script>

<script language="javascript" type="text/javascript" for="Viewer1" event="OnViewChanged">
// <!CDATA[
return Viewer1_OnViewChanged()
// ]]>
</script>
<script language="javascript" type="text/javascript" for="Viewer1" event="ondblclick">
// <!CDATA[
return Viewer1_ondblclick()
// ]]>
</script>
</head>
<body style="margin-top: 0px" onload="body_onload()">
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>  
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
        <object classid="clsid:279D6C9A-652E-4833-BEFC-312CA8887857" 
          id="Viewer1" style=" height: 503px; width: expression((document.body.clientWidth).toString() + 'px'); "
          codebase="http://download.microsoft.com/download/visiostandard2002/vview10/1/w982kmexp/en-us/vviewer.exe">
        <param name="BackColor" value="0">
        <param name="returnsEnabled" value="1">
        <param name="ContextMenuEnabled" value="1">
        <param name="GridVisible" value="0">
        <param name="HighQualityRender" value="1">
        <param name="PageColor" value="16777215">
        <param name="PageVisible" value="1">
        <param name="PropertyDialogEnabled" value="1">
        <param name="ScrollbarsVisible" value="1">
        <param name="ToolbarVisible" value="1">
        <param name="SRC" value="<%= UserVSDFileName() %>">
        <param name="CurrentPageIndex" value="1">
        <param name="Zoom" value=".67">
        <param name="ZoomOnRoll" value="1">
        </object>      

            </ContentTemplate>
        </asp:UpdatePanel>    
    </form>
</body>
</html>
